import {getRequest, postRequest} from '../request'

const order= {
  /** 提交订单 */
  createOrder: params => postRequest('/api/order/publishorder', params),
  /** 获取订单列表 */
  getOrderList: params => postRequest('/api/order/orderlist', params),
  /** 获取订单详情 */
  getOrderDetail: params => postRequest('/api/order/orderdetail', params)
}

export default order